#include"../../client/rpc_client.hpp"
int main()
{
     //实例化客服端
    auto client=make_shared<Client::TopicClient>("127.0.0.1",9090);
    // 创建主题
    bool ret=client->Create("hello");
    if(ret==false) 
    {
        ELog("创建主题失败");
        
    }
    //发布信息
    for(int i=0;i<10;i++)
        client->Publish("hello","hello world"+to_string(i));
    client->Shutdown();
    
    return 0;
}